package cn.spike.rockcc.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author spike
 * @since 2023-03-14
 */
@TableName("t_user_integral")
public class UserIntegral extends Model<UserIntegral> {

    private static final long serialVersionUID = 1L;

    /**
     * t_user共享id
     */
    private Long id;
    /**
     * 积分
     */
    private Integer integral;
    /**
     * 邀请码
     */
    @TableField("invitation_code")
    private String invitationCode;
    /**
     * 0未推荐 1已推荐
     */
    private Integer sate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public Integer getSate() {
        return sate;
    }

    public void setSate(Integer sate) {
        this.sate = sate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserIntegral{" +
        ", id=" + id +
        ", integral=" + integral +
        ", invitationCode=" + invitationCode +
        ", sate=" + sate +
        "}";
    }
}
